<?php
use tpfcore\Core;
?>
<!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<!-- Set render engine for 360 browser -->
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<!-- HTML5 shim for IE8 support of HTML5 elements -->
	<!--[if lt IE 9]>
		<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js">
		</script>
	<![endif]-->
	<link href="{$admin_assets_path}/css/theme.min.css" rel="stylesheet">
	<link href="{$admin_assets_path}/css/simplebootadmin.css" rel="stylesheet">
	<link href="{$admin_assets_path}/css/default.css" rel="stylesheet" />
	<link href="{$admin_assets_path}/css/font-awesome.min.css"
	rel="stylesheet" type="text/css">
	<style>
		.length_3{width: 180px;} form .input-order{margin-bottom: 0px;padding:3px;width:40px;}
		.table-actions{margin-top: 5px; margin-bottom: 5px;padding:0px;} .table-list{margin-bottom:
		0px;}
		.radio-img img{border:1px #d8d8d8 solid; padding: 1px;}
	</style>
	<!--[if IE 7]>
		<link rel="stylesheet" href="{$admin_assets_path}/css/font-awesome-ie7.min.css">
	<![endif]-->
	<script type="text/javascript">
		//全局变量
		var GV = {
			WEB_ROOT:"",
			DIMAUB: "/",
			JS_ROOT: "/theme/backend/assets/js/",
			TOKEN: ""
		};
	</script>
	<!-- Le javascript==================================================-
	-> <!-- Placed at the end of the document so the pages load faster -->
	<script src="{$admin_assets_path}/js/jquery.js"></script>
	<script src="{$admin_assets_path}/js/wind.js"></script>
	<script src="{$admin_assets_path}/js/bootstrap.min.js"></script>
</head>
<body>
	<div class="wrap">
	<ul class="nav nav-tabs">
		<li><a href="{:url("cms/MiniModule/index")}">模块管理</a></li>
		<li class="active"><a href='{:url("cms/MiniModule/edit",["id"=>$id])}'>编辑分类</a></li>
	</ul>
	<form method="post" class="form-horizontal js-ajax-form" action="">
		<input type="hidden" name="id" value="{$id}"/>
		<fieldset>
			<div class="control-group">
				<label class="control-label">模块名称:</label>
				<div class="controls">
					<input type="text" name="title" value="{$list['title']|default='模块名称'}">
					<span class="form-required">*</span>
				</div>
			</div>
			<div class="control-group">
				<label class="control-label">小程序模块列表地址:</label>
				<div class="controls">
					<input type="text" name="more_url" value="{$list['more_url']|default=''}">
					<span class="form-required">* 这里是小程序内的地址形式</span>
				</div>
			</div>
			<div class="control-group">
				<label class="control-label">小程序模块详情地址:</label>
				<div class="controls">
					<input type="text" name="base_url" value="{$list['base_url']|default=''}">
					<span class="form-required">* 这里是小程序内的地址形式</span>
				</div>
			</div>
			<div class="control-group">
				<label class="control-label">web列表地址:</label>
				<div class="controls">
					<input type="text" name="web_more_url" value="{$list['web_more_url']|default=''}">
					<span class="form-required">* 这里是网页的地址形式</span>
				</div>
			</div>
			<div class="control-group">
				<label class="control-label">web详情地址:</label>
				<div class="controls">
					<input type="text" name="web_base_url" value="{$list['web_base_url']|default=''}">
					<span class="form-required">* 这里是网页的地址形式</span>
				</div>
			</div>
			<div class="control-group">
				<label class="control-label">首页展示数量:</label>
				<div class="controls">
					<input type="text" name="limit" value="{$list['limit']}">
					<span class="form-required">* 首页最多取出的数量条数</span>
				</div>
			</div>
			<div class="control-group">
				<label class="control-label">首页展示样式:</label>
				<div class="controls radio-img">
					<label><input type="radio" name="style" value="1" {eq name="list['style']" value="1"}checked{/eq}> <img src="{$static_path}/images/style_1.jpg"/>一列排列的方式</label>
					<label><input type="radio" name="style" value="2" {eq name="list['style']" value="2"}checked{/eq}> <img src="{$static_path}/images/style_2.jpg"/>两列排列的方式</label>
					<label><input type="radio" name="style" value="3" {eq name="list['style']" value="3"}checked{/eq}> <img src="{$static_path}/images/style_3.jpg"/> 一行排列的方式（可左右滑动）</label>
				</div>
			</div>
			<div class="control-group">
				<label class="control-label">分类ID:</label>
				<div class="controls">
					<input type="text" name="category_id" value="{$list['category_id']}">
					<span class="form-required">* 栏目所属分类的最上级父类</span>
				</div>
			</div>
			<div class="control-group">
				<label class="control-label">排序方式:</label>
				<div class="controls">
					<input type="text" name="sort" value="{$list['sort']}">
					<span class="form-required">* 数据展示时的排序方式</span>
				</div>
			</div>
		</fieldset>
		<div class="form-actions">
			<button type="submit" class="btn btn-primary js-ajax-submit">确定操作</button>
			<a class="btn" href="javascript:history.back(-1);">返回</a>
		</div>
	</form>
</div>
	<script src="{$admin_assets_path}/js/common.js"></script>
</body>
</html>